package com.zysc.processflow.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zysc.processflow.common.base.BaseEntity;
import lombok.Data;

import java.util.Date;

@TableName("tb_sku")
@Data
public class Sku  extends BaseEntity {
    @TableField("spu_id")
    private Long spuId;
    private String title;
    private String images;
    private Long price;
    @TableField("own_spec")
    private String ownSpec;// 商品特殊规格的键值对
    private String indexes;// 商品特殊规格的下标
    private Boolean enable;// 是否有效，逻辑删除用
    @TableField("create_time")
    private Date createTime;// 创建时间
    @TableField("last_update_time")
    private Date lastUpdateTime;// 最后修改时间
    @TableField(exist = false)
    private Integer stock;// 库存tb_sku表里没有这个字段，不加Transient会报错


}